package com.prs.crm.dao.hr;

import java.util.Collection;
import java.util.Date;
import java.util.List;

import com.prs.crm.dao.BaseDao;
import com.prs.crm.domain.hr.Leave;
import com.prs.crm.domain.hr.LeaveType;
import com.prs.crm.domain.hr.Person;

public interface LeaveDao extends BaseDao<Leave>{
	public Collection<Leave> getAllLeave();
	Collection<Leave> getLeaveByIds(Collection<Integer> ids);
	public List<LeaveType> getAllLeaveType();
	public Collection<Object[]> findByType(LeaveType type, Date startTime, Date endTime, Collection<Person> persons);
	public Collection<Leave> findByPerson(final Person person);
	Collection<Leave> getLeavesByPersonInMonth(Person person , Integer year,Integer month);
}
